<template>
  <div>
    <div>我是B组件</div>
    <div>接收的值是：{{ flag }}</div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import Bus from "./bus";
let flag = ref(true);
Bus.on("toD", (params: boolean) => {
  flag.value = params;
});
</script>

<style>
</style>